package com.julius.design.pattern.factory.normal;

/**
 * <p>
 *
 * </p>
 * @author 117028
 */
public class UserClient {


    public static void main(String[] args) throws CloneNotSupportedException {
        UserFactory userFactory = new UserFactory();

        UserPrototype b = userFactory.getUserObjectByName("b");
        System.out.println(b.getUserInfo());


        UserPrototype c = userFactory.getUserObjectByName("c");
        System.out.println(c.getUserInfo());
        System.out.println(c);

        UserPrototype c1 = userFactory.getUserObjectByName("c");
        System.out.println(c1.getUserInfo());
        System.out.println(c1);
    }

}
